package com.wzy.springcloud.service;

import com.wzy.springcloud.dao.AccountDao;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.math.BigDecimal;

@Slf4j
@Service
public class AccountServiceImpl implements AccountService {
    @Resource
    private AccountDao accountDao;


    @Override
    public void decrease(Long userId, BigDecimal money) {
        log.info(">>>>>>>>>AccountService扣减账户余额");
        accountDao.decrease(userId, money);
        log.info(">>>>>>>>>AccountService扣减账户余额,结束");

    }
}
